﻿@model IEnumerable<SoftHotel.Models.DetalleReservaEv>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm("Create","DetalleReserva",FormMethod.Get))
{<p>
   
    <input type="submit" name="idReserva" value="" />
      
</p> }

<h2>Detalle de la Reserva</h2>


<table  width="100%" rules="all" border="1" style="border-color: Black; width: 900px; margin-bottom: 0px;">
    <tr align="center">
        
        <th>
           Fecha
        </th>
        <th>
             Ambiente
        </th>
        <th>
            Hora de inicio
        </th>
        <th>
            Hora de fin
        </th>

        <th>
            Precio Unitario
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr align="center">
         <td>
            @Html.DisplayFor(modelItem => item.fecha)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.ambiente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.hora_ini)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.hora_fin)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.precioUnit)
        </td>
        <td>
            @Html.ActionLink("Editar", "Edit", new { id = item.idDetalle }) |
            @Html.ActionLink("Eliminar", "Delete", new { id = item.idDetalle })
        </td>
    </tr>
}

</table>
